package Demo;

public class Test {
    @FunctionalInterface
    interface NoParameterNoReturn {
        int test(String s,String t);
    }
    public static void main(String[] args) {
        NoParameterNoReturn n1=new NoParameterNoReturn() {
            @Override
            public int test(String s,String t) {
                System.out.println(s+t);
                return 0;
            }
        };

        NoParameterNoReturn n2=(s,t)->{
            System.out.println(s+t);
            return 0;
        };

        n1.test("你好","张三");
        n2.test("你好","李四");
    }
}
